#define _CRT_SECURE_NO_WARNINGS 1
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'

int main() {
	ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	int n, m; cin >> n >> m;
	vector<int> a(m + 1);
	int ys = n % m;
	for (int i = 1; i <= m; i++) {
		if (ys > 0) a[i] = n / m + 1;
		else a[i] = n / m;
		ys--;
	}
	for(int i=m;i>=1;i--) cout<<a[i]<<" ";
	return 0;
}